﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories.Mappings
{
    public class RecruitmentMap : ClassMap<RecruitmentInfo>
    {
        public RecruitmentMap()
        {
            Table("RecruitmentInfo");
            LazyLoad();
            Id(x => x.Id).GeneratedBy.Identity().Column("Id");
            Map(x => x.CompanyId).Column("CompanyId").Not.Nullable();
            Map(x => x.Positionfunction).Column("Positionfunction");
            Map(x => x.ReleaseDate).Column("ReleaseDate");
            Map(x => x.SalaryRange).Column("SalaryRange");
            Map(x => x.WorkSite).Column("WorkSite");
            Map(x => x.Number).Column("Number");
            Map(x => x.WorkLife).Column("WorkLife");
            Map(x => x.Degree).Column("Degree");
            Map(x => x.JobDescription).Column("JobDescription");
        }
    }
}
